
package base_classes;

import java.util.HashSet;
import java.util.Set;
import java.util.Collections;

import javax.persistence.OneToMany;


/**
 *  myschedulechange.User
 *  12/10/2009 15:17:18
 * 
 */
public class User {

    private Integer idStudent;
    private String email;
    private String password;
    private String rolle;
    //private int fk_studgang;
    private Studiengang rel;
    private Set<base_classes.Kurs> kurse = new HashSet<base_classes.Kurs>();
    private Set<base_classes.Vorlesungsverschiebung> vorlesungsverschiebungs = new HashSet<base_classes.Vorlesungsverschiebung>();

    public User() {
    }

    public User(String email, String password, String rolle, Studiengang rel) {
        //this.idStudent = idStudent;
        this.email = email;
        this.password = password;
        this.rolle = rolle;
        this.rel = rel;
    }

    public User(Integer idStudent, String email, String password, String rolle, Studiengang rel, Set<base_classes.Kurs> kurse, Set<base_classes.Vorlesungsverschiebung> vorlesungsverschiebungs) {
        this.idStudent = idStudent;
        this.email = email;
        this.password = password;
        this.rolle = rolle;
        this.rel = rel;
        this.kurse = kurse;
        this.vorlesungsverschiebungs = vorlesungsverschiebungs;
    }
    
    public User(Integer idStudent, String email, String password, String rolle) {
        this.idStudent = idStudent;
        this.email = email;
        this.password = password;
        this.rolle = rolle;
    }


    public Integer getIdStudent() {
        return idStudent;
    }

    public void setIdStudent(Integer idStudent) {
        this.idStudent = idStudent;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRolle() {
        return rolle;
    }

    public void setRolle(String rolle) {
        this.rolle = rolle;
    }

    public Studiengang getRel() {
        return rel;
    }

    public void setRel(Studiengang rel) {
        this.rel = rel;
    }
    
    public Set<base_classes.Kurs> getKurse() {
		return kurse;
	}

	public void setKurse(Set<base_classes.Kurs> kurse) {
		this.kurse = kurse;
	}
	
    public Set<base_classes.Vorlesungsverschiebung> getVorlesungsverschiebungs() {
        return vorlesungsverschiebungs;
    }

    public void setVorlesungsverschiebungs(Set<base_classes.Vorlesungsverschiebung> vorlesungsverschiebungs) {
        this.vorlesungsverschiebungs = vorlesungsverschiebungs;
    }

}
